home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / intrlib1.zip / MOUSEDRV.H < prev    next >
C/C++ Source or Header  |  1991-01-09  |  2KB  |  44 lines

  1. /**************************************************************************
  2. * This is the function prototype declaration for the mousedrv module:      *
  3. *                                      *
  4. * W A R N I N G : This module assumes mouse driver was installed using    *
  5. * one of the following program: mouse.com or mouse.sys.              *
  6. *                                      *
  7. * This module can be compiled in any model (tiny..huge)              *
  8. *                                      *
  9. * Note that as the mouse driver is used asyncronically (i.e. interrupts)  *
  10. * fail to call MouseInit() at the begining or even worse, call          *
  11. * MouseClose() in the end is an invitation for total system disaster!      *
  12. *                                      *
  13. *                        Gershon Elber    Aug. 88      *
  14. **************************************************************************/
  15.  
  16. #ifndef  MOUSE_DRV_H                    /* Define only once. */
  17. #define  MOUSE_DRV_H
  18.  
  19. #define  BUFFER_SIZE 256             /* Size of mouse events buffer. */
  20.  
  21. #ifndef  TRUE
  22. #define  TRUE    -1
  23. #define  FALSE  0
  24. #endif
  25.  
  26. /* And finally the external routines prototypes: */
  27.  
  28. void MouseSetResolution(int Resolution);
  29. int  MouseDetect(void);
  30. char *MouseInit(int Sensitivity);
  31. void MouseClose(void);
  32. int  MouseQueryBuffer(void);
  33. int  MouseQueryDataBuffer(int *X, int *Y, int *Buttons, int *OverRunError);
  34. int  MouseGetBuffer(int *X, int *Y, int *Buttons);
  35. void MouseFlushBuffer(void);
  36. void MouseShowCursor(void);
  37. void MouseHideCursor(void);
  38. void MouseSetPosition(int X, int Y);
  39.  
  40. /* Two external integers defined Mouse Range (start from 0): */
  41. extern int MSMouseXmax, MSMouseYmax;
  42.  
  43. #endif   /* MOUSE_DRV_H */
  44.